Ext.onReady(function(){
	var pathName=window.document.location.pathname;
	var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);//获取项目名
	Ext.Ajax.request({
		url:projectName+"/userAction/getIndexUserModel.do",
		mehtod:'get',
		success : function(response, options) {
			var userModel = JSON.parse(response.responseText);
			var nickname = userModel.nickname;
			$("#clogin").text(nickname);
		},
		failure : function(response, options) {
			$("#clogin").html("<font color='red'>请登陆</font>");
		}
	});
});

function divShowAndHide(){
	document.getElementById("backgroudSetting").style.display = "block";
}
function checkLeftCss(){
	document.getElementById("backgroudSetting").style.display = "none";
//	document.getElementById("morenShow").style.display = "block";
//	document.getElementById("hideShow").style.display = "none";
}
function checkRightCss(){
	document.getElementById("backgroudSetting").style.display = "none";
//	document.getElementById("morenShow").style.display = "none";
//	document.getElementById("hideShow").style.display = "block";
}